package owl2vowl.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ProjectInformations {
	private static final String VERSION_PROPERTIES_FILE = "/version.properties";
	private static String version;

	public static String getVersion() {
		return version;
	}

	static {
		try {
			InputStream e = ProjectInformations.class.getResourceAsStream("/version.properties");
			Throwable arg0 = null;

			try {
				Properties properties = new Properties();
				properties.load(e);
				version = properties.getProperty("version", "");
			} catch (Throwable arg10) {
				arg0 = arg10;
				throw arg10;
			} finally {
				if (e != null) {
					if (arg0 != null) {
						try {
							e.close();
						} catch (Throwable arg9) {
							arg0.addSuppressed(arg9);
						}
					} else {
						e.close();
					}
				}

			}
		} catch (IOException arg12) {
			System.err.println("/version.properties not found.");
		}

	}
}